<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
  PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topic id="topic1" xml:lang="en">
  <title id="fv141670">pg_enum</title>
  <body>
    <p>The <codeph>pg_enum</codeph> table contains entries matching enum types to their associated
      values and labels. The internal representation of a given enum value is actually the OID of
      its associated row in <codeph>pg_enum</codeph>. The OIDs for a particular enum type are
      guaranteed to be ordered in the way the type should sort, but there is no guarantee about the
      ordering of OIDs of unrelated enum types.</p>
    <table id="fv141982">
      <title>pg_catalog.pg_enum</title>
      <tgroup cols="4">
        <colspec colnum="1" colname="col1" colwidth="131pt"/>
        <colspec colnum="2" colname="col2" colwidth="86pt"/>
        <colspec colnum="3" colname="col3" colwidth="85pt"/>
        <colspec colnum="4" colname="col4" colwidth="147pt"/>
        <thead>
          <row>
            <entry colname="col1">Column</entry>
            <entry colname="col2">Type</entry>
            <entry colname="col3">References</entry>
            <entry colname="col4">Description</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry colname="col1"><codeph>enumtypid</codeph></entry>
            <entry colname="col2">oid</entry>
            <entry colname="col3">pgtype.oid</entry>
            <entry>The OID of the <codeph>pg_type</codeph> entry owning this enum value</entry>
          </row>
          <row>
            <entry><codeph>enumsortorder</codeph></entry>
            <entry>float4</entry>
            <entry/>
            <entry>The sort position of this enum value within its enum type</entry>
          </row>
          <row>
            <entry><codeph>enumlabel</codeph></entry>
            <entry>name</entry>
            <entry/>
            <entry>The textual label for this enum value</entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </body>
</topic>
